const files = import.meta.glob("./model/*.ts", {
	eager: true,
	import: "default",
});
const keys = Object.keys(files);
const modules: TKeyValue = {};
keys.forEach((key: string) => {
	if (Object.prototype.hasOwnProperty.call(files, key)) {
		// 提取文件的名字作为模块名
		modules[key.replace(/(\.\/model\/|\.ts)/g, "")] = files[key];
	}
});
export default modules;
